
package edu.practica.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;

@Entity
@Table(name="Detalle")
public class Detalle implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Integer id;
              
    @JoinColumn(name="Tarifa", referencedColumnName="ID")
    @ManyToOne
    private Tarifa tarifaID;
    
    @JoinColumn(name="Cotizacion", referencedColumnName="ID")
    @ManyToOne
    private Cotizacion cotizacionID;

    @Column(name="SubTotal")
    private float subTotal;
    
    @Column (name="Pick_drop")
    private Boolean Pick_drop;

    public Boolean getPick_drop() {
        return Pick_drop;
    }

    public void setPick_drop(Boolean Pick_drop) {
        this.Pick_drop = Pick_drop;
    }
    

    public Detalle() {
    }

    public Cotizacion getCotizacionID() {
        return cotizacionID;
    }

    public void setCotizacionID(Cotizacion cotizacionID) {
        this.cotizacionID = cotizacionID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public float getSubTotal() {
        return subTotal;
    }

    public void setSubTotal(float subTotal) {
        this.subTotal = subTotal;
    }

    public Tarifa getTarifaID() {
        return tarifaID;
    }

    public void setTarifaID(Tarifa tarifaID) {
        this.tarifaID = tarifaID;
    }
    
    
}
